<div style="clear:both"></div>
	<ul class="pager">
	
		<block lz:if="{{pageInfo.total>0}}">
			<li>
				<a href="?page=0&{{lz.queryString('page')}}">首页</a>
			</li>
			<li lz:if="{{pageInfo.prev}}">
				<a href="?page={{pageInfo.index-1}}&{{lz.queryString('page')}}">上一页</a>
			</li>
			
			<li class="{{pageInfo.index==item?'focus':''}}" lz:for="{{(pageInfo.index+3)>(pageInfo.total-1)?(pageInfo.total-1):(pageInfo.index+3)}}" lz:for-first="{{(pageInfo.index-3)<0?0:(pageInfo.index-3)}}">
				<a href="?page={{item}}&{{lz.queryString('page')}}">{{item+1}}</a>
		    </li>
	 	
			<li lz:if="{{pageInfo.next}}">
				<a href="?page={{pageInfo.index+1}}&{{lz.queryString('page')}}">下一页</a>
			</li>
			<li lz:if="{{pageInfo.next}}">
				<a href="?page={{pageInfo.total-1}}&{{lz.queryString('page')}}">未页</a>
			</li>
		</block>
	
		<li class="text">共{{pageInfo.count}}条记录</li>
		
		<li class="text">
			<input id="page" name="page" value="{{pageInfo.index+1}}" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" style="width:32px; height:16px; text-align:center;"/>
			页
			<input id="size" name="size" value="{{pageInfo.size}}" maxlength="3" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" style="width:32px; height:16px; text-align:center;"/>
			条
		</li>
		<li onclick="window.location='?page='+($('#page').val()-1)+'&size='+($('#size').val())+'&{{lz.queryString('page','size')}}';">
			转到
		</li>
				
		<li class="text">
			&nbsp;&nbsp;&nbsp;&nbsp;
		</li>
		<li lz:if="{{notQuery!='true' && canExport}}">
			<a onclick="exportXls();" href="javascript:void(0);">&nbsp;&nbsp;导出&nbsp;&nbsp;</a>			
		</li>
		
	</ul>	
	
	<div style="clear:both;"></div>
	
	<script type="text/javascript">
	if(!window.exportXls)
	window.exportXls=function(){
		if({{pageInfo.count}}==0){
			showTips("当前没有可导出数据");
			return;
		}
		var params = "{{lz.queryString('page')}}";
		if($(".check:checked").length>0){
			var ids = "";
			$(".check:checked").each(function(i){
				if(ids!="")
					ids+=",";
				ids+=$(this).val();
			});
			params = "ids="+ids+"";
		}
		
		$.getFields({
			className:"{{className}}",
			title:"选择要导出的列",
			depth:0,
			callback:function(fields){
				if(!fields){
					showTips("请选择要导出的列");
					return false;
				}
				window.location.href="{{modelPath}}.export.do?"+"&fields="+fields+"&"+params;	
			}
		});
	}
	</script>